package social.hub.api.linkedin;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import social.hub.api.linkedin.util.LinkedInPublicationListResponse;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
		"id",
		"firstName",
		"lastName",
		"numRecommenders",
		"publicationList"
})
@XmlRootElement(name = "person")
public class LinkedinProfile {

	@XmlElement()
	protected String	id;

	@XmlElement(name = "first-name")
	protected String	firstName;

	@XmlElement(name = "last-name")
	protected String	lastName;

	@XmlElement(name = "num-recommenders")
	protected Long		numRecommenders;
	
	@XmlElement(name = "publications")
	protected LinkedInPublicationListResponse publicationList;
	
	public String getFirstName() {
		return firstName;
	}
	
	public String getFullName() {
		return this.firstName + " " + this.lastName;
	}

	public String getId() {
		return id;
	}

	public String getLastName() {
		return lastName;
	}

	public Long getNumRecommenders() {
		return numRecommenders;
	}

	public LinkedInPublicationListResponse getPublicationList() {
		return publicationList;
	}
	
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public void setNumRecommenders(Long numRecommenders) {
		this.numRecommenders = numRecommenders;
	}

	public void setPublicationList(LinkedInPublicationListResponse publicationList) {
		this.publicationList = publicationList;
	}

}
